IdeaBlade.Core Assembly > IdeaBlade.Core.Composition Namespace > CompositionContext Class > AddGenerator Method : AddGenerator(Type,Type,Func<Object>) Method |
'Declaration
Protected Overloads Sub AddGenerator( _ ByVal contractType As Type, _ ByVal instanceType As Type, _ ByVal instanceFunc As Func(Of Object) _ )
'Usage
Dim instance As CompositionContext Dim contractType As Type Dim instanceType As Type Dim instanceFunc As Func(Of Object) instance.AddGenerator(contractType, instanceType, instanceFunc)
protected void AddGenerator( Type contractType, Type instanceType, Func<object> instanceFunc )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2